<!DOCTYPE html>
<html lang="zh">

	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
		<script src="../../js/lib/lazytree-v0.2/lazyTree.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="../../js/lib/lazytree-v0.2/skin/lazyTree.css" />
		<title>Document</title>
	</head>

	<body>
		<p>
			<a href="http://wwwendt.de/tech/dynatree/index.html">http://wwwendt.de/tech/dynatree/index.html</a>
		</p>
		<div id='idTree'> </div>
		<script type="text/javascript">
			function onTreeSelect(tn) { // (2)
				alert('You selected ' + tn.title);
			}

			function initTree() { // (3)
				var tree = new CLazyTree('idTree', 'Root Cause');
				tree.imagePath="../../js/lib/lazytree-v0.2/skin/";
				tree.bAutoCollapse = true;
				tree.onSelect = onTreeSelect;

				var f, d;
				f = tree.getRoot().addFolder('Folder 1');
				f.addDoc('Document 1');
				f.addDoc('Document 2');

				f = tree.getRoot().addFolder('Folder 2');
				f.addDoc('Document 3');
				tree.enableUpdate(true);
			}
			initTree();
		</script>
	</body>

</html>